<!DOCTYPE html>
<html lang="zh" dir="ltr">
  <head>
    <meta charset="utf-8">
    <title>测试页面</title>
    <link rel="stylesheet" href="CSS/zTreeStyle.css">
    <script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.min.js"></script>

  </head>
  <body>
    <div>
      <ul id="testMenu" class="ztree" >

      </ul>
    </div>
  </body>
  <script type="text/javascript" src="JS/jquery.ztree.all.js"></script>
  <script type="text/javascript">
    var setting = {
      data:{
        simpleData:{
          enable:true
        }
      }
    };

    var zNodes = [
      {id:1,pId:0,name:'父节点一'},
      {id:2,pId:0,name:'父节点二'}
    ];

    $.fn.zTree.init($("#testMenu"),setting,zNodes);

  </script>
</html>
